package com.ruoyi.vehicleDispatch.mapper;

import java.util.List;
import com.ruoyi.vehicleDispatch.domain.CustomerServiceRule;

/**
 * 客服务司机规则Mapper接口
 * 
 * @author niuyi
 * @date 2025-08-19
 */
public interface CustomerServiceRuleMapper 
{
    /**
     * 查询客服务司机规则
     * 
     * @param ruleId 客服务司机规则主键
     * @return 客服务司机规则
     */
    public CustomerServiceRule selectCustomerServiceRuleByRuleId(Integer ruleId);

    /**
     * 查询客服务司机规则列表
     * 
     * @param customerServiceRule 客服务司机规则
     * @return 客服务司机规则集合
     */
    public List<CustomerServiceRule> selectCustomerServiceRuleList(CustomerServiceRule customerServiceRule);

    /**
     * 新增客服务司机规则
     * 
     * @param customerServiceRule 客服务司机规则
     * @return 结果
     */
    public int insertCustomerServiceRule(CustomerServiceRule customerServiceRule);

    /**
     * 修改客服务司机规则
     * 
     * @param customerServiceRule 客服务司机规则
     * @return 结果
     */
    public int updateCustomerServiceRule(CustomerServiceRule customerServiceRule);

    /**
     * 删除客服务司机规则
     * 
     * @param ruleId 客服务司机规则主键
     * @return 结果
     */
    public int deleteCustomerServiceRuleByRuleId(Integer ruleId);

    /**
     * 批量删除客服务司机规则
     * 
     * @param ruleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerServiceRuleByRuleIds(Integer[] ruleIds);
}
